-- GENERATED SPELL FOR [Haal'eshi Windwalker] --


function spell0_16966(pUnit, Event) --@Hurricane,n/a--
pUnit:FullCastSpellOnTarget(32717,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16966', 10000, 1)
end

function spell1_16966(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16966', 3000, 1)
end

function Sorts_16966(pUnit, Event)
local choix_sorts_16966 = math.random(0, 1)
if choix_sorts_16966 == 0 then
pUnit:RegisterEvent('spell0_16966', 1, 1)
end
if choix_sorts_16966 == 1 then
pUnit:RegisterEvent('spell1_16966', 1, 1)
end
end

function mob16966_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16966', math.random(1500, 3000), 1)
end

function mob16966_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16966_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16966_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16966, 1, 'mob16966_Action')
RegisterUnitEvent(16966, 2, 'mob16966_Leave')
RegisterUnitEvent(16966, 3, 'mob16966_Kill')
RegisterUnitEvent(16966, 4, 'mob16966_Die')
